package com.ly.lypopupwindowdemo.fragment;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.ly.lypopupwindowdemo.R;

import butterknife.BindView;
import butterknife.ButterKnife;


public class TextFragment extends Fragment {

    @BindView(R.id.content)
    public TextView content;

    public TextFragment() {
        // Required empty public constructor
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment

        View view = inflater.inflate(R.layout.fragment_blank, container, false);

        ButterKnife.bind(this,view);
        if (getArguments()!=null){
            String str = getArguments().getString("title");
            content.setText(str);
        }

        return view;
    }




}
